class CreateSegments < ActiveRecord::Migration
  def self.up
    create_table :segments do |t|
      # 統計情報
      t.column :size,:integer
      t.column :data,:text
      # イコール検索を行うcolumn
      t.column :surface,:text
      t.column :reading,:text
      t.column :pronunciation,:text
      t.column :basetype_surface,:text
      t.column :basetype_reading,:text
      t.column :basetype_pronunciation,:text
      # 正規表現検索を行うcolumn
      t.column :part_of_speech,:text
      t.column :ctype,:text
      t.column :cform,:text
      t.column :basetype_part_of_speech,:text
      t.column :basetype_ctype,:text
      t.column :basetype_cform,:text
    end
  end

  def self.down
    drop_table :segments
  end
end
